package com.gugee.ins.common.dal.service.mark.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gugee.ins.common.dal.mapper.mark.InsRkBloggerBgsMonthMapper;
import com.gugee.ins.common.dal.service.mark.InsRkBloggerBgsMonthDao;
import com.gugee.ins.common.model.mysql.mark.InsRkBloggerBgsMonth;
import org.springframework.stereotype.Service;

/**
 * <p>
 * ins 带货达人 月排行表 服务实现类
 * </p>
 *
 * @author HuangXin
 * @since 2021-04-07
 */
@Service
public class InsRkBloggerBgsMonthDaoImpl extends ServiceImpl<InsRkBloggerBgsMonthMapper, InsRkBloggerBgsMonth> implements InsRkBloggerBgsMonthDao {

    /**
     * 生成榜单
     * @param dateCode
     * @param lastDateCode
     * @param category
     * @param limitCount
     */
    @Override
    public void insertRk(int dateCode, int lastDateCode, String category, int limitCount) {
        baseMapper.insertRk(dateCode,dateCode/100,lastDateCode,category,limitCount,System.currentTimeMillis() / 1000);
    }
}
